package com.xxx.kjds.serviceImpl;

import com.xxx.kjds.entity.StoreGoods;
import com.xxx.kjds.entity.StoreGoodsExample;
import com.xxx.kjds.mapper.StoreGoodsMapper;
import com.xxx.kjds.service.StoreGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreGoodsServiceImpl implements StoreGoodsService {
    @Autowired
    private StoreGoodsMapper storeGoodsMapper;

    @Override
    public long countByExample(StoreGoodsExample example) {
        return storeGoodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(StoreGoodsExample example) {
        return storeGoodsMapper.deleteByExample(example);
    }

    @Override
    public int insert(StoreGoods record) {
        return storeGoodsMapper.insert(record);
    }

    @Override
    public int insertSelective(StoreGoods record) {
        return storeGoodsMapper.insertSelective(record);
    }

    @Override
    public List<StoreGoods> selectByExample(StoreGoodsExample example) {
        return storeGoodsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(StoreGoods record, StoreGoodsExample example) {
        return storeGoodsMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(StoreGoods record, StoreGoodsExample example) {
        return storeGoodsMapper.updateByExample(record, example);
    }
}
